//package com.yiwei.hdb.impl;
//
//import android.content.Context;
//
//import com.yiwei.hdb.constant.Const;
//import com.yiwei.hdb.http.CallBackListener;
//import com.yiwei.hdb.http.InterfaceServer;
//import com.yiwei.hdb.interfaces.HelpInfo;
//import com.yiwei.hdb.http.InfoCallBack;
//import com.yiwei.hdb.http.ResponseListener;
//import com.yiwei.hdb.model.ContentDetailModel;
//import com.yiwei.hdb.model.HelpModel;
//import com.yiwei.hdb.model.MessageDetailModel;
//import com.yiwei.hdb.model.MessageModel;
//import com.yiwei.hdb.model.RequestModel;
//import com.yiwei.hdb.model.ResponseModel;
//import com.yiwei.hdb.util.JsonUtil;
//
//import java.util.HashMap;
//import java.util.Map;
//
///**
// * 帮助数据
// * Created by Master.Dong on 2016/4/13.
// */
//public class HelpInfoImpl implements HelpInfo {
//
//    @Override
//    public void getHelpInfo(final Context mContext, final InfoCallBack callBack) {
//        Map<String, Object> mapData = new HashMap<String, Object>();
//        RequestModel model = new RequestModel(mapData);
//
//        InterfaceServer.getInstance(mContext.getApplicationContext()).requestInterface(Const.HELP, Const.RequestMethod.GET, model, Const.DEFAULT_TIMEOUT,new CallBackListener<HelpModel>(HelpModel.class,callBack));
////                new ResponseListener() {
////            @Override
////            public void onStartInMainThread(Object result) {
////                callBack.onFailure(result.toString());
////            }
////
////            @Override
////            public void onFinishInMainThread(Object result) {
////            }
////
////            @Override
////            public Object onSuccessInRequestThread(int statusCode, String content) {
////                try {
////                    return JsonUtil.<HelpModel>fromJson(content, HelpModel.class);
////                } catch (Exception e) {
////                    return null;
////                }
////            }
////
////            @Override
////            public void onSuccessInMainThread(int statusCode, String content, Object result) {
////                try {
////                    HelpModel model = (HelpModel) result;
////
////                    callBack.onSuccess(model);
////                    //返回数据接口
////                } catch (Exception e) {
////                    e.printStackTrace();
////                }
////            }
////        });
//    }
//
//    @Override
//    public void getHelpDetailInfo(Context mContext, String id, final InfoCallBack callBack) {
//        Map<String, Object> mapData = new HashMap<String, Object>();
//        RequestModel model = new RequestModel(mapData);
//
//        InterfaceServer.getInstance(mContext.getApplicationContext()).requestInterface(Const.HELP_DETAIL + id, Const.RequestMethod.GET, model, Const.DEFAULT_TIMEOUT, new CallBackListener<ContentDetailModel>(ContentDetailModel.class,callBack));
////                new ResponseListener() {
////            @Override
////            public void onStartInMainThread(Object result) {
////                callBack.onFailure(result.toString());
////            }
////
////            @Override
////            public void onFinishInMainThread(Object result) {
////            }
////
////            @Override
////            public Object onSuccessInRequestThread(int statusCode, String content) {
////                try {
////                    return JsonUtil.<ContentDetailModel>fromJson(content, ContentDetailModel.class);
////                } catch (Exception e) {
////                    return null;
////                }
////            }
////
////            @Override
////            public void onSuccessInMainThread(int statusCode, String content, Object result) {
////                try {
////                    ContentDetailModel model = (ContentDetailModel) result;
////
////                    callBack.onSuccess(model);
////                    //返回数据接口
////                } catch (Exception e) {
////                    e.printStackTrace();
////                }
////            }
////        });
//    }
//
//    @Override
//    public void getMessageInfo(Context mContext, String page, final InfoCallBack callBack) {
//        Map<String, Object> mapData = new HashMap<String, Object>();
//        mapData.put("page", page);
//        RequestModel model = new RequestModel(mapData);
//
//        InterfaceServer.getInstance(mContext.getApplicationContext()).requestInterface(Const.MESSAGE, Const.RequestMethod.POST, model, Const.DEFAULT_TIMEOUT, new CallBackListener<MessageModel>(MessageModel.class,callBack));
////                new ResponseListener() {
////            @Override
////            public void onStartInMainThread(Object result) {
////                callBack.onFailure(result.toString());
////            }
////
////            @Override
////            public void onFinishInMainThread(Object result) {
////            }
////
////            @Override
////            public Object onSuccessInRequestThread(int statusCode, String content) {
////                try {
////                    return JsonUtil.<MessageModel>fromJson(content, MessageModel.class);
////                } catch (Exception e) {
////                    return null;
////                }
////            }
////
////            @Override
////            public void onSuccessInMainThread(int statusCode, String content, Object result) {
////                try {
////                    MessageModel model = (MessageModel) result;
////
////                    callBack.onSuccess(model);
////                    //返回数据接口
////                } catch (Exception e) {
////                    e.printStackTrace();
////                }
////            }
////        });
//    }
//
//    @Override
//    public void getMessageDetailInfo(Context mContext, String id, final InfoCallBack callBack) {
//        Map<String, Object> mapData = new HashMap<String, Object>();
//        mapData.put("id", id);
//        RequestModel model = new RequestModel(mapData);
//
//        InterfaceServer.getInstance(mContext.getApplicationContext()).requestInterface(Const.MESSAGE_DETAIL, Const.RequestMethod.POST, model, Const.DEFAULT_TIMEOUT, new CallBackListener<MessageDetailModel>(MessageDetailModel.class,callBack));
////                new ResponseListener() {
////            @Override
////            public void onStartInMainThread(Object result) {
////                callBack.onFailure(result.toString());
////            }
////
////            @Override
////            public void onFinishInMainThread(Object result) {
////            }
////
////            @Override
////            public Object onSuccessInRequestThread(int statusCode, String content) {
////                try {
////                    return JsonUtil.<MessageDetailModel>fromJson(content, MessageDetailModel.class);
////                } catch (Exception e) {
////                    return null;
////                }
////            }
////
////            @Override
////            public void onSuccessInMainThread(int statusCode, String content, Object result) {
////                try {
////                    MessageDetailModel model = (MessageDetailModel) result;
////                    if (model.getStatus() == 1) callBack.onSuccess(model);
////                    else callBack.onFailure(model.getMsg());
////
////                } catch (Exception e) {
////                    e.printStackTrace();
////                }
////            }
////        });
//    }
//
//}
